/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package swingproject;

import java.util.Calendar;
import java.util.Iterator;
import java.util.TreeSet;

/**
 *
 * @author hung
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        // Singleton
        Calendar c = Calendar.getInstance();

        TreeSet ts  = new TreeSet();
        ts.add(1);
        ts.add(1);
        ts.add(1);

        Iterator in = ts.iterator();
        while (in.hasNext()) {
            System.out.println(in.next());
        }
    }

}
